<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>

</body>
<script>
    //声明Map

    let m = new Map()

    //添加元素
    m.set('name', "nmsl")
    m.set('change', function () {
        console.log("kill queel")
    })
    let key = {
        school: "TGUIGN"
    }
    m.set(key, ['北京', '上海', '长沙'])

    //删除
    m.delete('name')
    //获取
    console.log(m.get('change'))

    //清空
    // m.clear();

    //遍历
    for (let v of m) {
        console.log(v)
    }
    console.log(m)
    console.log(m.size)
</script>

</html>